//
//  MulImageModelCell.m
//  lianxi_3
//
//  Created by lanou3g on 16/4/18.
//  Copyright © 2016年 张静. All rights reserved.
//

#import "MulImageModelCell.h"

@interface MulImageModelCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *firstImageView;
@property (weak, nonatomic) IBOutlet UIImageView *secondImageView;
@property (weak, nonatomic) IBOutlet UIImageView *thirdImageView;
@property (weak, nonatomic) IBOutlet UILabel *channelLabel;
@property (weak, nonatomic) IBOutlet UILabel *dataLabel;
@property (weak, nonatomic) IBOutlet UILabel *sourceLabel;

@end
@implementation MulImageModelCell
- (void)setModel:(MulImageModel *)model {
    if (_model != model) {
        _model = model;
    }
}
- (void)layoutSubviews {
    self.titleLabel.text = self.model.title;
    self.channelLabel.text = self.model.channelName;
    self.dataLabel.text = self.model.pubDate;
    self.sourceLabel.text = self.model.source;
    self.firstImageView.image = [UIImage imageNamed:self.model.imageurls[0][@"url"]];
    self.secondImageView.image = [UIImage imageNamed:self.model.imageurls[1][@"url"]];
    self.thirdImageView.image = [UIImage imageNamed:self.model.imageurls[2][@"url"]];
}
+ (CGFloat)height {
    return 220;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
